$(eval $(call compiled_js_library, \
    flame/resolution/get_current_package_name, \
        flame/global_state \
        flame/namespace \
))

$(eval $(call compiled_js_library, \
    flame/resolution/process_flame_file, \
        flame/namespace \
        flame/external/run_script_file \
        util/sprintf \
))

# TODO(jacobsa): The dependency on register_action is here only because it is
# needed for the test. Fix this.
$(eval $(call compiled_js_library, \
    flame/resolution/process_resolve_work, \
        flame/global_state \
        flame/namespace \
        flame/actions/parse_action_name \
        flame/resolution/process_flame_file \
        flame/resolution/process_resolve_work_item \
        flame/resolution/register_action \
        util/sprintf \
        util/string_set \
))

$(eval $(call compiled_js_library, \
    flame/resolution/process_resolve_work_item, \
        flame/actions/action \
        flame/actions/parse_action_name \
        flame/namespace \
        flame/types \
        util/string_map \
        util/string_set \
))

$(eval $(call compiled_js_library, \
    flame/resolution/register_action, \
        flame/actions/action \
        flame/global_state \
        flame/namespace \
        util/sprintf \
))

$(eval $(call compiled_js_library, \
    flame/resolution/resolve_actions, \
        flame/global_state \
        flame/namespace \
))

######################################################
# Tests
######################################################

$(eval $(call js_test,flame/resolution/get_current_package_name))
$(eval $(call js_test,flame/resolution/process_resolve_work))
$(eval $(call js_test,flame/resolution/process_resolve_work_item))
$(eval $(call js_test,flame/resolution/register_action))
$(eval $(call js_test,flame/resolution/resolve_actions))
